module.exports = app => {
  const {
    router,
    controller
  } = app;
  // 点歌
  router.post('/song/put', controller.home.putSong);
  // 获取歌曲列表
  router.get('/song/list', controller.home.getSongList);
  // 获取当前播放歌曲信息
  router.get('/song/current/detail', controller.home.getCurrentSong);
  // 升级 webSocket 协议
  router.get('/ws/upgrade', controller.home.upgrade);
  // 发起切歌
  router.post('/song/change', controller.home.nextSong);
  // 测试
  router.get('/test', controller.home.test);
};